#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<malloc.h>

void find(int* arr2, int a)

{	
	int m = 0;
	int* arr1 = (int*)malloc(a*sizeof(int));
	for (int x = 0; x <a; ++x)
	{
		int y = 0;
		int k = 0;
		for ( y = 0; y < a ; ++y)
		{
			if (arr2[x] == arr2[y])
			{
				k++;
			}
		}
		if (k == 1)
		{
			arr1[m++] = arr2[x];
		}
	}

	for (int x = 0; x < m ; ++x)
	{
		printf("%d ", *(arr1+x));
	}
	free(arr1);
	arr1 = NULL;
	free(arr2);
	arr2 = NULL;
}
int main(void)
{
	int a = 0;
	scanf("%d", &a);
	int* arr = (int*)malloc(a*sizeof(int));
	for (int x = 0; x < a; ++x)
	{
		scanf("%d", &arr[x]);
		//getchar();
	}
	find(arr,a);


	
}